//
//  UIColor + EX.swift
//  weibo1990
//
//  Created by 曹晓龙 on 15/10/26.
//  Copyright © 2015年 曹晓龙. All rights reserved.
//

import UIKit

// MARK: - 添加颜色分类
extension UIColor {
    
    ///  返回随机颜色
    class func randomColor() -> UIColor{
        
        let r:CGFloat = CGFloat(random() % 256 ) / 255.0
        let g:CGFloat = CGFloat(random() % 256 ) / 255.0
        let b:CGFloat = CGFloat(random() % 256 ) / 255.0
        
        return UIColor(red: r, green: g, blue: b, alpha: 1.0)
    }
}
